<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<TITLE>
	<c:if test="${theForm.qryGroupID != 99999999}">${myfn:getGroupName(theForm.qryGroupID)}</c:if>
	<c:if test="${theForm.qryGroupID == 99999999}">${myfn:getUserName(theForm.userID)}</c:if>		
	的照片</TITLE>
	<link href="<%=path%>/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<script> 
	function change_width(img_name,wid,hei)
	{
		var CurImage=new Image();
		if(CurImage.src!=img_name.src)
		{
			CurImage.src=img_name.src;
		}
		var img_width = CurImage.width;
		var img_height = CurImage.height;
		img_name.width = img_width;
		img_name.height = img_height;

		if(img_height/hei > img_width/wid)
		{
			if( img_height > hei)
			{
				img_name.width = img_name.width/img_name.height*hei;
				img_name.height = hei;
			}
		}
		else
		{
			if( img_width > wid)
			{
				img_name.height = img_name.height/img_name.width*wid;
				img_name.width = wid;
			}
		}
		return true;
	}
</script>
 
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="<%=path%>/users.do?action=main">我的主页</a> >> <a href="#"> 照片</a></div>
	<%@ include file="/navf.jsp"%>
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
		<c:if test="${theForm.qryGroupID != 99999999}">	
		<a href="<%=path%>/group_get/groupID_${theForm.qryGroupID}.html"><img src="<%=path%>/${myfn:getGroupPic(theForm.qryGroupID)}"  width="75" height="75" class="shequ icon user_icon_2"></a>
        <p><b><a href="<%=path%>/group_get/groupID_${theForm.qryGroupID}.html">${myfn:getGroupName(theForm.qryGroupID)}</a> </b></p>
        <p>相册：${albumForm.albumname}</p>
		</c:if>
		<c:if test="${theForm.qryGroupID == 99999999}">
		<a href="<%=path%>/users.do?action=home&userID=${theForm.userID}"><img src="<%=path%>/${myfn:getUserPic(theForm.userID)}"  width="75" height="75" class="shequ icon user_icon_2"></a>
        <p><b><a href="<%=path%>/users.do?action=home&userID=${theForm.userID}">${myfn:getUserName(theForm.userID)}</a> </b></p>
        <p>相册：${albumForm.albumname}</p>
		</c:if>    
	</div>
    <div class="hotBox1-right">
      <p class="lineColor1">全部相片有 ${picnum} 张</p>
      <p>
		<c:if test="${theForm.qryGroupID != 99999999 && myfn:groupAddFlag(theForm.qryGroupID,userID) == 1
		|| theForm.qryGroupID == 99999999 && albumForm.userID == userID}">		  
		<a href="<%=path%>/gpic.do?action=addPage&qryGroupID=${theForm.qryGroupID}&galbumID=${theForm.qryGAlbumID}"><img src="<%=path%>/images/icon_26.gif" width="177" height="58" /></a>
		</c:if>&nbsp;
	  </p>    
    </div>
  </div> 
   
 <div class="left-Box6">
  <h3>照片列表</h3>
  <div class="left-Box6-content">
    <ul class="theAlbumList theAlbumList-pic">
	<form action="<%=path%>/gpic.do" name="theForm"  method="post" enctype="multipart/form-data" >   
	<c:forEach var="pic" items="${piclist}" varStatus="status">   
      <li>
         <p class="p1"><a href="<%=path%>/gpic_views/qryGpicID_${pic.gpicID}_qryGAlbumID_${pic.galbumID}.html"><img src="<%=path%>/${myfn:getPic(pic.picName)}" 
		 class="user_icon_3"></a></p>  
         <p class="p2">上传：${myfn:getUserNick(pic.userID)} <span class="w20"></span>
			<c:if test="${myfn:isGroupManager(theForm.qryGroupID,userID) || userID == pic.userID}">
				<a href="<%=path%>/gpic_delete/gpicID_${pic.gpicID}.html" class="lineColor1">删除</a>
			</c:if>
	     </p>
       </li> 
	</c:forEach>         
    </ul><!-- onload="change_width(this,145,105)" -->
    <div class="clearFloat"></div>   
    <div class="page">
		<input type="hidden" name='qryGroupID' value='${theForm.qryGroupID}'/>
		<!-- 分页主键 formName字段当前的form名称 -->
		<%@ include file="/jsplib/page.jsp" %>
		<!--隐藏域-->
		<input type="hidden" name='action' value='adlist'/>
    </div>
	</form>

  </div>

  </div>
    
  <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;
		var action = form['action'];
		form.submit();
	}
</script>